package com.finance_provider.service.impl;

import com.entity.BuyAdvance;
import com.finance_provider.mapper.BuyAdvanceMapper;
import com.finance_provider.service.BuyAdvanceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: RinPromise
 * @Date: 2021/9/22 14:55
 */
@Service
public class BuyAdvanceServiceImpl implements BuyAdvanceService {

    @Resource
    private BuyAdvanceMapper buyAdvanceMapper;

    @Override
    public Boolean addBuyAdvance(BuyAdvance buyAdvance) {
        return buyAdvanceMapper.addBuyAdvance(buyAdvance);
    }

    @Override
    public Boolean updateBuyAdvance(BuyAdvance buyAdvance) {
        return buyAdvanceMapper.updateBuyAdvance(buyAdvance);
    }

    @Override
    public List<BuyAdvance> queryBuyAdvance(BuyAdvance buyAdvance) {
        return buyAdvanceMapper.queryBuyAdvance(buyAdvance);
    }

    @Override
    public BuyAdvance queryBuyAdvanceId(Long id) {
        return buyAdvanceMapper.queryBuyAdvanceId(id);
    }

    @Override
    public Boolean deleteBuyAdvanceId(Long id) {
        return buyAdvanceMapper.deleteBuyAdvanceId(id);
    }
}
